﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace Relay.UI.Controls.Win32 {
    internal static class Interop {
        [DllImport("user32.dll")]
        public static extern int GetCursorPos(ref POINTAPI lpPoint);

        [DllImport("User32.dll")]
        public static extern int GetDoubleClickTime();

        [StructLayout(LayoutKind.Sequential)]
        public struct POINTAPI {
            internal int x;
            internal int y;
        }

        public const int WM_NCLBUTTONDOWN = 0xA1;
        public const int WM_NCLBUTTONDBLCLK = 0xA3;
        public const int WM_QUERYENDSESSION = 0x11;
        public const int HTCAPTION = 2;
    }
}
